package org.dromara.system.service;

import org.dromara.common.core.domain.R;
import org.dromara.common.excel.core.ExcelResult;
import org.dromara.system.domain.WbMinuteBidBag;
import org.dromara.system.domain.dr.WbMinuteBidBagDR;
import org.dromara.system.domain.dto.NumDTO;
import org.dromara.system.domain.dto.WbMinuteBidBagDTO;
import org.dromara.system.domain.dto.WbMinuteBidBagSiftDTO;
import org.dromara.system.domain.vo.WbMinuteBidBagVo;
import org.dromara.system.domain.bo.WbMinuteBidBagBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.system.domain.vo.WbProvinceVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 分标分包Service接口
 *
 * @author Lion Li
 * @date 2024-03-22
 */
public interface IWbMinuteBidBagService {

    /**
     * 查询分标分包
     */
    WbMinuteBidBagVo queryById(Long id);

    /**
     * 查询分标分包列表
     */
    TableDataInfo<WbMinuteBidBagVo> queryPageList(WbMinuteBidBagBo bo, PageQuery pageQuery);

    /**
     * 查询分标分包列表
     */
    List<WbMinuteBidBagVo> queryList(WbMinuteBidBagBo bo);

    /**
     * 查询分标分包导出列表
     */
    public List<WbMinuteBidBagVo> queryExportList(WbMinuteBidBagBo bo);
    /**
     * 新增分标分包
     */
    Boolean insertByBo(WbMinuteBidBagBo bo);

    /**
     * 修改分标分包
     */
    Boolean updateByBo(WbMinuteBidBagBo bo);

    /**
     * 校验并批量删除分标分包信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    TableDataInfo<WbMinuteBidBagVo> queryBidList(WbMinuteBidBagBo bo,String provinceName, PageQuery pageQuery);

    int queryListSum(WbMinuteBidBagBo bo, PageQuery pageQuery);

    TableDataInfo<WbMinuteBidBagDTO> queryListMinuteBidBag(WbMinuteBidBagBo bo, PageQuery pageQuery);

    R importList(ExcelResult<WbMinuteBidBagDR> result);


    R<WbMinuteBidBagSiftDTO> queryListSift(WbMinuteBidBagBo bo, PageQuery pageQuery);

    TableDataInfo<WbMinuteBidBagVo> queryPageListZdy(Long userId,WbMinuteBidBagBo bo, PageQuery pageQuery);

    TableDataInfo<WbMinuteBidBagVo> queryPageList_xcx(Long userId,WbMinuteBidBagBo bo, PageQuery pageQuery);


    List<NumDTO> countNum();

    List<WbMinuteBidBagVo> queryListByName(WbMinuteBidBagBo bo);
}
